#ifndef LOGIN_H
#define LOGIN_H
#include "../global.h"

#include <QDialog>

namespace Ui {
class Login;
}

class Account;
class Connector;

class Login : public QDialog {
    Q_OBJECT

  public:
    explicit Login(QWidget *parent,Connector *connector,Account *account);
    ~Login();
    void push();
  public slots:
    void abort();
    void enroll();
    void reset();
    void login();

  private:
    Ui::Login *ui;
  public:
    State state;
    Account *account;
    Connector *connector;
    bool storePassword;
    bool autoLogin;
};

#endif // LOGIN_H
